<header class="header">

<!-- <a [routerLink]="[ '/home' ]">首页</a>

<a routerLink='/news'>新闻组件</a>

<a [routerLink]="[ '/product' ]">商品页面</a> -->

<a [routerLink]="[ '/home' ]"  routerLinkActive="active">首页</a>

<a routerLink='/news'  routerLinkActive="active">新闻组件</a>

<a [routerLink]="[ '/product' ]"  routerLinkActive="active">商品页面</a>

</header>

<router-outlet></router-outlet>
